package com.aliyun.messagemgt.dto.vo.weixin;

/**
 * Created with IDEA
 * 微信
 *
 * @author:zhangxingxing 0027012120
 * @date:2019/1/25
 * @time:14:23
 */
public class WeixinTextcardSendModelVO extends WeixinSendModelVO {

    private Textcard textcard;

    public WeixinTextcardSendModelVO(Textcard textcard) {
        super.setMsgtype("textcard");
        this.textcard = textcard;
    }

    public Textcard getTextcard() {
        return textcard;
    }

    public WeixinTextcardSendModelVO setTitle(String title) {
        textcard.title = title;
        return this;
    }

    public WeixinTextcardSendModelVO setDescription(String description) {
        textcard.description = description;
        return this;
    }

    public WeixinTextcardSendModelVO setUrl(String url) {
        textcard.url = url;
        return this;
    }

    public WeixinTextcardSendModelVO setBtntxt(String btntxt) {
        textcard.btntxt = btntxt;
        return this;
    }

    public WeixinTextcardSendModelVO() {
        super.setMsgtype("textcard");
        textcard = new Textcard();
    }

    public WeixinTextcardSendModelVO setTextcard(Textcard textcard) {
        this.textcard = textcard;
        return this;
    }

    static class Textcard {

        private String title;
        private String description;
        private String url;
        private String btntxt;

        public String getTitle() {
            return title;
        }

        public Textcard setTitle(String title) {
            this.title = title;
            return this;
        }

        public String getDescription() {
            return description;
        }

        public Textcard setDescription(String description) {
            this.description = description;
            return this;
        }

        public String getUrl() {
            return url;
        }

        public Textcard setUrl(String url) {
            this.url = url;
            return this;
        }

        public String getBtntxt() {
            return btntxt;
        }

        public Textcard setBtntxt(String btntxt) {
            this.btntxt = btntxt;
            return this;
        }
    }
}
